package com.xmg.p2p.business.service;

import com.xmg.p2p.base.query.PageResult;
import com.xmg.p2p.business.domain.BidRequest;
import com.xmg.p2p.business.domain.BidRequestAuditHistory;
import com.xmg.p2p.business.query.BidRequestQueryObject;

import java.util.List;

public interface IBidRequestService {
    void update(BidRequest bidRequest);

    boolean canApplyBindRequest(Long logininfoId);

    void apply(BidRequest bidRequest);

    PageResult queryPage(BidRequestQueryObject qo);

    void audit(long id, int state, String remark);

    BidRequest findById(Long id);

    List<BidRequestAuditHistory> listByBidRequestId(Long id);

    List<BidRequest> listIndex(int i);

    void bid(long bidRequestId, int amount);

    void fullAudit1(Long id, int state, String remark);

    void fullAudit2(Long id, int state, String remark);
}
